<?php 
header("Content-Type: text/html; charset=utf-8");

	$con = mysql_connect("localhost","root");
	if (!$con) {
		die("连接失败。");
	}

	mysql_select_db("test", $con) or die("切换错误。");

	$sql = "CREATE TABLE blog
 			(
 				id varchar(15),
				subject varchar(31),
				content text
 			)";
	mysql_query($sql, $con) or die("创建失败。");

	mysql_close($con);
?>